from tkinter import *
x = int(input())
y = int(input())
m = int(input())
coords = [x,y, 10*m+x,y,10*m+x,10*m+y,20*m+x,10*m+y,20*m+x,30*m+y,10*m+x,30*m+y,10*m+x,20*m+y,x,20*m+y,x,y]     

if x == 0 and y>=0 and y<=500 and m>=0 and m<=500:
    pass
else:
    if x > 0 and 0*x+y>=0 and 0*x+m>=0  and 20*m+y>=500 and 20*x+m>=500:
        pass
    else:
        if x < 0 and 20*x+y>=0 and 20*x+m>=0  and 0*x+y>=500 and 0*x+m>=500:
            pass
        else:
            print('Размер фигуры превышает минимальный размер поля')
            exit()

root = Tk()
root.title("ИТ марафон")
root.geometry('500x500')
canvas = Canvas(bg="white", width=500,height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_polygon(coords)

root.mainloop()
    
